package homework.api01.apitest01;

public class TrimDemo {
    public static void main(String[] args) {
        //去除字符串两边的空白字符
        String str = "      Hello Word      ";
        String trim = str.trim();
        System.out.println(trim);//Hello Word
        System.out.println(str);//      Hello Word
    }
}
